
import { Injectable } from '@angular/core';
import { Resolve, ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router';
import { Observable } from 'rxjs';
import { ApiService } from 'src/app/core/api';

@Injectable()
export class IndexActivate implements Resolve<any> {
	constructor(private apiService:ApiService){}
	resolve() {
		return this.apiService.post('旅游产品列表', {pageNo:1}).then(res => {
			return res['data']['list'];
		}).catch(res => {
			return res;
		});
	}
}
